:root {
  font-family: 'Noto Sans SC', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #333333;
    background-color: #f6f6f6;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* 全局确保所有元素都使用 Noto Sans SC 字体 */
* {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
}

/* 全局禁止标签页文本选择 */
.ant-tabs-tab,
.ant-tabs-tab-btn,
.ant-tabs-tab-active,
.ant-tabs-tab div,
.ant-tabs-tab span {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  cursor: pointer !important;
}

/* 全局表格表头样式 */
.ant-table-thead > tr > th {
  background-color: #8a55c9 !important;
  color: white !important;
  font-weight: 500 !important;
  border-bottom: none !important;
}

/* 全局禁止不需要编辑的元素文本选择 */
h1, h2, h3, h4, h5, h6,
.ant-card-head-title,
.ant-card-extra,
.ant-table-tbody > tr > td,
.ant-table-summary,
.ant-table-title,
.ant-pagination,
.ant-pagination-item,
.ant-pagination-prev,
.ant-pagination-next,
.ant-menu-item,
.ant-menu-submenu,
.ant-breadcrumb,
.ant-descriptions-item-label,
.ant-statistic,
.ant-statistic-title,
.ant-statistic-content,
.ant-timeline,
.ant-timeline-item,
.ant-empty,
.ant-empty-description,
.ant-result-title,
.ant-result-subtitle,
.ant-tag,
.ant-badge,
.ant-avatar,
.ant-avatar-string,
.ant-tooltip,
.ant-popover-inner-content,
.ant-drawer-header-title,
button,
.ant-btn,
label,
.ant-form-item-label > label,
.ant-checkbox + span,
.ant-radio + span,
.ant-tabs-tab,
.ant-dropdown-menu-item {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}
